#include "ball.h"
#include <QMainWindow>
#include <cmath>

const double banjing=sqrt(2.0);//半径
void BALL::initial_ball(int type1)
{
    type=type1;
    size=(int)(8*pow(banjing,type1));
    m=(int)(pow(1.5,type1));
    vx=vy=ax=ay=0;//设置初值
    falling=0;
}
